import request from '@/utils/request'

// 查询列的基本信息列表
export function listInfo(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeCount',
    method: 'post',
    data
  })
}

export function queryHomeTopList(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeTopList',
    method: 'post',
    data
  })
}

export function queryHomeList(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeList',
    method: 'post',
    data
  })
}

export function queryHomeleWordList(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeleWordList',
    method: 'post',
    data
  })
}

export function queryHomeDbAccountCount(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeDbAccountCount',
    method: 'post',
    data
  })
}

export function queryHomeColumnCount(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeColumnCount',
    method: 'post',
    data
  })
}

export function queryHomeTableCount(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeTableCount',
    method: 'post',
    data
  })
}

export function queryHomeDbCount(data) {
  return request({
    url: '/datascan/b/homecount/queryHomeDbCount',
    method: 'post',
    data
  })
}



// 查询列的基本信息详细
export function getInfo(scanResultId) {
  return request({
    url: '/system/info/' + scanResultId,
    method: 'get'
  })
}

// 新增列的基本信息
export function addInfo(data) {
  return request({
    url: '/system/info',
    method: 'post',
    data: data
  })
}

// 编辑列的基本信息
export function updateInfo(data) {
  return request({
    url: '/system/info',
    method: 'put',
    data: data
  })
}

// 删除列的基本信息
export function delInfo(scanResultId) {
  return request({
    url: '/system/info/' + scanResultId,
    method: 'delete'
  })
}
